﻿using AutoMapper;
using D.Traceability.Domain;
using D.Traceability.Write.API.APPlicant.Command;
using D.Traceability.Write.API.APPlicant.Command.DeepCommand;
using D.Traceability.Write.API.APPlicant.Command.SlaughterCommand;
using D.Traceability.Write.API.APPlicant.Command.TestCommand;

namespace D.Traceability.Write.API
{
    public class AutoMapperFilePro : Profile
    {
        public AutoMapperFilePro()
        {
            //溯源信息
            CreateMap<AddTraceCommand,SU_TraceabilityModel>().ReverseMap();
            //检验报道图片
            CreateMap<AddTestCommand, SU_PictureModel>().ReverseMap();
            //养殖信息
            CreateMap<AddBreedCommand, SU_BreedModel>().ReverseMap();
            //保健信息
            CreateMap<AddImmunityCommand, SU_ImmunityModel>().ReverseMap();
            //企业信息 
            CreateMap<AddUpdateEnterpriseCommand, SU_EnterpriseModel>().ReverseMap();
            //屠宰信息     
            CreateMap<AddUpdateSlaughterCommand, SU_SlaughterModel>().ReverseMap();
            //深加工
            CreateMap<AddUpdateDeepCommand, SU_DeepModel>().ReverseMap();
            //供应商
            CreateMap<AddUpdateSupplierCommand, SU_SupplierModel>().ReverseMap();





        }

    }
}